<template>
	<view>
		<Six  v-if="info.cid==1"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Six>
		
		<Four v-if="info.cid==2" 
			:body="info.body" 
			:schedule="info.schedule" 
			:keys="keys"
			@qinfolaststepChange="qinfolaststepChange"
		></Four>
		
		
		<Nine  v-if="info.cid == 3" 
			:body="info.body" 
			:schedule="info.schedule" 
			:qinfolaststepChange="qinfolaststepChange" :keys="keys"></Nine>
			
			
		<Alignment  v-if="info.cid == 4" 
			:body="info.body"
			:schedule="info.schedule" 
			:qinfolaststepChange="qinfolaststepChange" :keys="keys">
		></Alignment>
		
		<Killer v-if="info.cid == 5"
			:body="info.body"
			:schedule="info.schedule" 
			:qinfolaststepChange="qinfolaststepChange" :keys="keys">
		></Killer>
		<Nineserrated
			v-if="info.cid == 6"
			:body="info.body"
			:schedule="info.schedule" 	
			:qinfolaststepChange="qinfolaststepChange" :keys="keys"
		></Nineserrated>
		
		<Sixalignment  v-if="info.cid==7"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Sixalignment>
		<Sixcontinuous  v-if="info.cid==8"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Sixcontinuous>
		
		<Sixinequalitysign  v-if="info.cid==9"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Sixinequalitysign>
		
		<Sixprime
			v-if="info.cid==10"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Sixprime>
		<Nineclone
			v-if="info.cid==11"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Nineclone>
		<Nineaddition
			v-if="info.cid==12"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Nineaddition>
		<Ninearrows
			v-if="info.cid==13"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Ninearrows>
		<Ninecontinuous
			v-if="info.cid==14"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Ninecontinuous>
		<!-- 六宫加法数独 -->
		<Sixaddition
			v-if="info.cid==15"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Sixaddition>
		
		<!-- 六宫连续数独1 -->
		<Sixcontinuous1
			v-if="info.cid==18"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		>
		</Sixcontinuous1>
		<!-- 六宫箭头数独 -->
		<Sixarrows
			v-if="info.cid==19"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		>
		</Sixarrows>
		<!-- 六宫无缘数独 -->
		<Sixwithout
			v-if="info.cid==17"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		>
			
		</Sixwithout>
		<!-- 六宫克隆数独 -->
		<Sixclone
			v-if="info.cid==16"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Sixclone>
		<!-- 九宫奇数数独 -->
		<Nineuneven
			v-if="info.cid==21"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Nineuneven>
		
		<!-- 九宫不连续数独 -->
		<Ninenocontinuous
			v-if="info.cid==22"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Ninenocontinuous>	
		<!-- 九宫堡垒数独 -->
		
		<Ninefort
			v-if="info.cid==23"
			:body="info.body" 
			:keys="keys"
			:schedule="info.schedule" 
			@qinfolaststepChange="qinfolaststepChange"
		></Ninefort>
	</view>
</template>

<script>
	import Nine from  "./nine/nine.vue"
	import Four from "./four/four.vue"
	import Six from "./six/six.vue"
	import Alignment from  "./nine/alignment.vue"
	import Killer from  "./nine/killer.vue"
	import Sixalignment from "./six/sixalignment.vue"
	import Sixcontinuous from "./six/sixcontinuous.vue"  //连续六宫格
	import Sixinequalitysign from "./six/sixinequalitysign.vue"  //不连续数独
	import Sixprime from "./six/sixprime.vue"    //六宫格质数
	import Sixcontinuous1 from "./six/sixcontinuous1.vue"  //六宫格连续数独1
	import Sixarrows  from "./six/sixarrows.vue"   //六宫箭头数独
	import Sixwithout from "./six/sixwithout.vue"   //六宫无缘数独
	import Sixaddition from "./six/sixaddition.vue"  //六宫加法数独
	import Sixclone from "./six/sixclone.vue"    //六宫克隆数独
	import Nineclone from "./nine/nineclone.vue"    //九宫格克隆数独
	import Nineaddition from "./nine/nineaddition.vue"   //九宫格加法数独
	import Ninearrows  from "./nine/ninearrows.vue"   //九宫格箭头数独
	import Ninecontinuous  from "./nine/ninecontinuous.vue"    //九宫格连续数独
	import Nineserrated  from "./nine/serrated.vue"   //九宫格锯齿数独
	import Nineuneven from "./nine/nineuneven.vue"    //九宫奇数数独
	import Ninenocontinuous  from  "./nine/ninenocontinuous.vue"    //九宫不连续数独
	import Ninefort  from  "./nine/ninefort.vue" 
	
	export default {
		props: ['info','keys'],
		components:{
			Nine,Four,Six,Alignment,Killer,Sixalignment,Sixcontinuous,Sixinequalitysign,Sixprime,Nineclone,
			Nineaddition,Ninearrows,Ninecontinuous,Sixcontinuous1,Sixarrows,Sixwithout,Sixclone,Sixaddition,
			Nineserrated,Nineuneven,Ninenocontinuous,Ninefort
		},
		watch:{
			info(e){
				this.info  = e;
					console.log(this.info);
			},
			keys(e){
				this.keys  = e;
				console.log(this.keys);
			}
		},
		methods:{
			qinfolaststepChange(e){
				this.$emit('qinfolaststepChange',e);
			}
		},
	}
</script>

<style>
</style>